<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/Mock.js/1.0.1-beta3/mock-min.js"></script>
<script src="https://cdn.staticfile.org/qrcodejs/1.0.0/qrcode.js"></script>





<div id="Application">

    <!--首页背景图-->
    <div class="home-banner">
        <!--桌面端-->
        <img v-if="awesome" class="home-pic" :src="list_images.pc">
        <!--移动端-->
        <img v-else class="home-pic" :src="list_images.phone">
    </div>





    <!--活动截止日期-->
    <!--
    <div class="main-tips n-yhdh n-top">
        活动截止日期：2023年2月5号
    </div>
    -->

    <div id="ActivityDate" class=" main-tips n-yhdh n-top">2023-01-05 12:00:00</div>

    <!--优惠导航-->
    <h2 class="n-h2 ">优惠导航</h2>
    <table class="npc-table">
        <tr>
            <th>直达链接</th>
            <th>店铺</th>
        </tr>
        <tr v-for="itm in list_arr" :key="itm.id">
            <td><a :href="'#'+itm.id">优惠点我直达</a></td>
            <td>{{itm.store_name}}</td>
        </tr>

    </table>

    <!--自定义优惠 -->
    <div class="npc_content_box"><!--标题-->
        <h2 id="2566" class="n-h2">杯货节本站直接优惠购买</h2>
        <div class="m-divbox"><!-- 标签 --><i class="npc_tag">本站直减</i>
            <div class="m-box" style="
    padding-bottom: 80px;
"><!--内容-->


                <div class="box1 home-item" style="
    width: 38%;
    margin: 0 auto;
    display: block;
    height: 300px;
">

                    <!--产品名-->
                    <h2>EXE深田咏美再现(半身）</h2><!--优惠--><span class="home-item-mtitle"> 优惠劵：140元 </span><!--市场价--><span>
                        市场价259</span><!--二维码--><!--购买链接--><a href="https://dongbd.com/shop/41404.html" title="立即抢购"
                        target="_blank" class="home-item-btn"> 立即购买 </a><!--产品图片--><img
                        src="https://dongbd.com/wp-content/uploads/2022/12/1672240905.webp" class="home-item-pic">
                </div>


            </div>

        </div><!--v-if-->
    </div>

    <!--自定义优惠结束 -->
    <div class="npc_content_box" v-for="itm in list_arr" :key="itm.id">

        <!--提示-->
        <!--
        <div class="main-tips">
            提示：若无法领劵，直接截图去找对应店铺客服亦可享受同样优惠价格
        </div>
        -->
        <!--标题-->
        <h2 :id="itm.id" class="n-h2">{{itm.store_name}}</h2>


        <div class="m-divbox">
            <!-- 标签 -->
            <i class="npc_tag">{{itm.tag}}</i>
            <div class="m-box">

                <!--内容-->
                <div class="box1 home-item" v-for="itm in itm.product" :key="itm.id">

                    <!--产品名-->
                    <h2>
                        {{itm.product_name}}
                    </h2>
                    <!--优惠-->
                    <span class="home-item-mtitle">
                        优惠劵：{{itm.discount}}元
                    </span>
                    <!--市场价-->
                    <span>
                        市场价{{itm.market}}
                    </span>
                    <!--二维码-->
                    <div class="n-main-box">
                        <!--<img class="n-img" :src="itm.qr" />-->
                        <div class="n-img" :id="itm.qr_id"></div>
                    </div>

                    <!--购买链接-->
                    <!--添加判断，PC端用shop链接，移动端用shop--->
                    <a :href="awesome?itm.shop_pc:itm.shop_mobile" title="立即抢购" target="_blank" class="home-item-btn">
                        立即领劵</a>
                    <!--产品图片-->
                    <img :src="itm.image" class="home-item-pic">
                </div>
            </div>
        </div>

        <span v-if="!awesome" class="tips">向 ← ← ← 滑动，查看更多</span>

    </div>

    <!--底部提示-->
    <div class="main-tips">
        提示：若无法领劵，直接截图去找对应店铺客服亦可享受同样优惠价格
    </div>
    <!--返回顶部-->
    <button type="button" style="margin: 0 auto;display: block;margin-top: 6em;"><a
            href="#Application">回到顶部</a></button>


</div>

<script>
    const App = Vue.createApp({
        setup() {
            let Random = Mock.Random;
            //生成数据
            let list = {
                "images": {
                    "pc": "https://dongbd.com/wp-content/uploads/static/221231/3-bhj-pc.jpg",
                    "phone": "https://dongbd.com/wp-content/uploads/2022/12/1672506513.webp"
                },
                "rows": [
                    /*
                    {
                        "store_name": "杯货节本站直接优惠购买",
                        "id": 2566,
                        "tag":"本站直减",
                        "product": [
                            {
                                "product_name": "EXE深田咏美再现(半身）",
                                "qr_id": "briyrt",
                                "image": "https://dongbd.com/wp-content/uploads/2022/12/1672240905.webp",
                                "discount": 140,
                                "market": 259,
                                "shop": "https://dongbd.com/shop/41404.html"
                            },
                            {
                                "product_name": "exe-奶瓶三代刺激",
                                "qr_id": "vgbt",
                                "image": "https://dongbd.com/wp-content/uploads/2022/12/1672241587.webp",
                                "discount": 100,
                                "market": 229,
                                "shop": "https://dongbd.com/shop/41404.html"
                            },
                            {
                                "product_name": "maccos-柔嫩之口",
                                "qr_id": "flmet",
                                "image": "https://dongbd.com/wp-content/uploads/2022/12/1672241655.webp",
                                "discount": 65,
                                "market": 169,
                                "shop": "https://dongbd.com/shop/41404.html"
                            }
                        ]
                    },
                    */

                    {
                        "store_name": "天猫名器之家",
                        "id": 25,
                        "tag": "天猫优惠",
                        "product": [
                            {
                                "product_name": "YUU热热子",
                                "qr_id": "briyr",
                                "image": "https://dongbd.com/wp-content/uploads/2022/08/1661768917.webp",
                                "discount": 150,
                                "market": 299,
                                "shop_pc": "https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=4233188010&activityId=486e3de1c4d44bfeabd0ca24725d018a",
                                "shop_mobile": "http://xm.shop0025.cn/SWlpdB"
                            },
                            {
                                "product_name": "YUU热感奶瓶",
                                "qr_id": "vgb",
                                "image": "https://dongbd.com/wp-content/uploads/2022/11/1669479198.webp",
                                "discount": 50,
                                "market": 229,
                                "shop_pc": "https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=4233188010&activityId=bc8527f74ed94dd2991c0867398234f1",
                                "shop_mobile": "http://xm.shop0025.cn/WTN4hj"
                            },
                            {
                                "product_name": "YUU吸吸口",
                                "qr_id": "flme",
                                "image": "https://dongbd.com/wp-content/uploads/2022/09/1664209685.webp",
                                "discount": 100,
                                "market": 359,
                                "shop_pc": "https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=4233188010&activityId=5631e0c6b82f48879880731e589a5b3f",
                                "shop_mobile": "http://xm.shop0025.cn/yurvc9"
                            }
                        ]
                    },
                    {
                        "store_name": "天猫Tamatoys名器之家专卖店",
                        "id": 24,
                        "tag": "天猫优惠",
                        "product": [
                            {
                                "product_name": "彼女姐姐",
                                "qr_id": "sbase",
                                "image": "https://dongbd.com/wp-content/uploads/2021/01/342579.webp",
                                "discount": 50,
                                "market": 129,
                                "shop_pc": "https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=2200648456075&activityId=eb7429ee830b4e7eadec9339fa1f0f3b",
                                "shop_mobile": "http://xm.shop0025.cn/GPrWSl"
                            },
                            {
                                "product_name": "彼女花嫁",
                                "qr_id": "xhg",
                                "image": "https://dongbd.com/wp-content/uploads/2021/08/403869.webp",
                                "discount": 50,
                                "market": 169,
                                "shop_pc": "https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=2200648456075&activityId=723f6972a431403d847bdb4e731e76aa",
                                "shop_mobile": "http://xm.shop0025.cn/72hnI6"
                            },
                            {
                                "product_name": "常务姐姐",
                                "qr_id": "gfwk",
                                "image": "https://dongbd.com/wp-content/uploads/2022/12/1672161240.webp",
                                "discount": 50,
                                "market": 399,
                                "shop_pc": "https://detail.tmall.com/item.htm?id=684571234710&spm=a21y7.9633707.0.0.36dc47a1tiKexZ",
                                "shop_mobile": "http://xm.shop0025.cn/SpmfrP"
                            }
                        ]
                    },
                    {
                        "store_name": "天猫眸牧成人用品专营店",
                        "id": 32,
                        "tag": "天猫优惠",
                        "product": [
                            {
                                "product_name": "萌慢玩",
                                "qr_id": "oyqi",
                                "image": "https://dongbd.com/wp-content/uploads/thumb/2021/04/fill_w600_h600_g0_mark_363717.webp",
                                "discount": 30,
                                "market": 98,
                                "shop_pc": "https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=3478189727&activityId=2eb716e7aa7c458f9da072296d8d8a0f",
                                "shop_mobile": "http://xm.shop0025.cn/bhgbZc"
                            },
                            {
                                "product_name": "小萌臀",
                                "qr_id": "umb",
                                "image": "https://dongbd.com/wp-content/uploads/2022/12/1671534754.webp",
                                "discount": 30,
                                "market": 109,
                                "shop_pc": "https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=3478189727&activityId=2eb716e7aa7c458f9da072296d8d8a0f",
                                "shop_mobile": "http://xm.shop0025.cn/bhgbZc"
                            },
                            {
                                "product_name": "真实之口",
                                "qr_id": "jmil",
                                "image": "https://dongbd.com/wp-content/uploads/thumb/2021/11/fill_w600_h600_g0_mark_503967.webp",
                                "discount": 30,
                                "market": 109,
                                "shop_pc": "https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=3478189727&activityId=2eb716e7aa7c458f9da072296d8d8a0f",
                                "shop_mobile": "http://xm.shop0025.cn/bhgbZc"
                            }
                        ]
                    },

                    {
                        "store_name": "天猫米杯旗舰店",
                        "id": "24m",
                        "tag": "天猫优惠",
                        "product": [
                            {
                                "product_name": "米杯S",
                                "qr_id": "sbasem",
                                "image": "	https://dongbd.com/wp-content/uploads/2022/09/1664363777.webp",
                                "discount": 50,
                                "market": 199,
                                "shop_pc": "https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=2214629825508&activityId=5fb335dd15b14f3c8e40737403cbd22b",
                                "shop_mobile": "http://xm.shop0025.cn/2PUpNA"
                            },
                            {
                                "product_name": "米杯X",
                                "qr_id": "xhgm",
                                "image": "https://dongbd.com/wp-content/uploads/2022/12/1671536858.webp",
                                "discount": 50,
                                "market": 399,
                                "shop_pc": "https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=2214629825508&activityId=5fb335dd15b14f3c8e40737403cbd22b",
                                "shop_mobile": "http://xm.shop0025.cn/2PUpNA"
                            },
                            {
                                "product_name": "米杯ONE",
                                "qr_id": "gfwkm",
                                "image": "https://dongbd.com/wp-content/uploads/2022/06/203216.webp",
                                "discount": 50,
                                "market": 249,
                                "shop_pc": "https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=2214629825508&activityId=5fb335dd15b14f3c8e40737403cbd22b",
                                "shop_mobile": "http://xm.shop0025.cn/2PUpNA"
                            }
                        ]
                    },

                    {
                        "store_name": "淘宝懂杯帝杯友店",
                        "id": 241,
                        "tag": "淘宝优惠",
                        "product": [
                            {
                                "product_name": "棉花糖",
                                "qr_id": "sbased",
                                "image": "https://dongbd.com/wp-content/uploads/2022/11/1669116546.webp",
                                "discount": 30,
                                "market": 129,
                                "shop_pc": "https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=113002440&activityId=af67ad3b660d4831abfde671a8cfc510",
                                "shop_mobile": "http://xm.shop0025.cn/k3UzQf"
                            },
                            {
                                "product_name": "深田名器",
                                "qr_id": "xhgd",
                                "image": "https://dongbd.com/wp-content/uploads/2021/09/362688.webp",
                                "discount": 50,
                                "market": 299,
                                "shop_pc": "https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=113002440&activityId=35d08d5da0e34ce69608a8c3cf3c3fac",
                                "shop_mobile": "http://xm.shop0025.cn/BFfHFE"
                            },
                            {
                                "product_name": "杯刺激",
                                "qr_id": "gfwkd",
                                "image": "https://dongbd.com/wp-content/uploads/2022/02/265335.webp",
                                "discount": 30,
                                "market": 109,
                                "shop_pc": "https://taoquan.taobao.com/coupon/unify_apply.htm?sellerId=113002440&activityId=448fbf62ce654e1daa4713c069b460ab",
                                "shop_mobile": "http://xm.shop0025.cn/eNfcb7"
                            }
                        ]
                    },

                    {
                        "store_name": "京东YUU官方旗舰店",
                        "id": 242,
                        "tag": "京东优惠",
                        "product": [
                            {
                                "product_name": "YUU热热子二代",
                                "qr_id": "sbasej",
                                "image": "https://dongbd.com/wp-content/uploads/2022/08/1661768917.webp",
                                "discount": 100,
                                "market": 299,
                                "shop_pc": "https://coupon.m.jd.com/coupons/show.action?key=e38e0714ec96461b8350b6a84da8179c&roleId=96881125&to=mall.jd.com/index-10723158.html",
                                "shop_mobile": "https://coupon.m.jd.com/coupons/show.action?key=e38e0714ec96461b8350b6a84da8179c&roleId=96881125&to=mall.jd.com/index-10723158.html"
                            },
                            {
                                "product_name": "吸吸酱",
                                "qr_id": "xhgj",
                                "image": "https://dongbd.com/wp-content/uploads/2022/05/084398.webp",
                                "discount": 100,
                                "market": 339,
                                "shop_pc": "https://coupon.m.jd.com/coupons/show.action?key=9fd4f98a1dcf4020acafdef21886bab5&roleId=96881253&to=mall.jd.com/index-10723158.html",
                                "shop_mobile": "https://coupon.m.jd.com/coupons/show.action?key=9fd4f98a1dcf4020acafdef21886bab5&roleId=96881253&to=mall.jd.com/index-10723158.html"
                            },
                            {
                                "product_name": "软萌酱",
                                "qr_id": "gfwkj",
                                "image": "https://dongbd.com/wp-content/uploads/thumb/2021/07/fill_w600_h600_g0_mark_282043.webp",
                                "discount": 50,
                                "market": 249,
                                "shop_pc": "https://coupon.m.jd.com/coupons/show.action?key=2d911513b67443ed82ef6bbb907d8ddc&roleId=96881323&to=mall.jd.com/index-10723158.html",
                                "shop_mobile": "https://coupon.m.jd.com/coupons/show.action?key=2d911513b67443ed82ef6bbb907d8ddc&roleId=96881323&to=mall.jd.com/index-10723158.html"
                            }
                        ]
                    },

                    {
                        "store_name": "京东懂杯帝杯友店",
                        "id": 243,
                        "tag": "京东优惠",
                        "product": [
                            {
                                "product_name": "七彩罐娘",
                                "qr_id": "dsbase",
                                "image": "https://dongbd.com/wp-content/uploads/2022/08/1660305728.webp",
                                "discount": 10,
                                "market": 69,
                                "shop_pc": "https://coupon.m.jd.com/coupons/show.action?key=90a3847fd5914c768dadff24ecdc11f4&roleId=96881418&to=mall.jd.com/index-11602471.html",
                                "shop_mobile": "https://coupon.m.jd.com/coupons/show.action?key=90a3847fd5914c768dadff24ecdc11f4&roleId=96881418&to=mall.jd.com/index-11602471.html"
                            },
                            {
                                "product_name": "慢玩之臀",
                                "qr_id": "dxhg",
                                "image": "https://dongbd.com/wp-content/uploads/2022/02/180447.webp",
                                "discount": 30,
                                "market": 199,
                                "shop_pc": "https://coupon.m.jd.com/coupons/show.action?key=9191cd1e76db4c2c84b3be9f7d5ee436&roleId=96881523&to=mall.jd.com/index-11602471.html",
                                "shop_mobile": "https://coupon.m.jd.com/coupons/show.action?key=9191cd1e76db4c2c84b3be9f7d5ee436&roleId=96881523&to=mall.jd.com/index-11602471.html"
                            },
                            {
                                "product_name": "枫花恋",
                                "qr_id": "dgfwk",
                                "image": "https://dongbd.com/wp-content/uploads/2022/02/460418.webp",
                                "discount": 30,
                                "market": 169,
                                "shop_pc": "https://coupon.m.jd.com/coupons/show.action?key=7352c84411944bc98bf933233baaaef9&roleId=96881600&to=mall.jd.com/index-11602471.html",
                                "shop_mobile": "https://coupon.m.jd.com/coupons/show.action?key=7352c84411944bc98bf933233baaaef9&roleId=96881600&to=mall.jd.com/index-11602471.html"
                            }
                        ]
                    },

                    {
                        "store_name": "京东米杯旗舰店",
                        "id": 245,
                        "tag": "京东优惠",
                        "product": [
                            {
                                "product_name": "米杯X",
                                "qr_id": "qsbasem",
                                "image": "https://dongbd.com/wp-content/uploads/2022/12/1671536858.webp",
                                "discount": 50,
                                "market": 399,
                                "shop_pc": "https://coupon.m.jd.com/coupons/show.action?key=516aeddc5cbd47fa9bcfe8de0d6079e6&roleId=96881667&to=mall.jd.com/index-12201306.html",
                                "shop_mobile": "https://coupon.m.jd.com/coupons/show.action?key=516aeddc5cbd47fa9bcfe8de0d6079e6&roleId=96881667&to=mall.jd.com/index-12201306.html"
                            },
                            {
                                "product_name": "米杯S",
                                "qr_id": "qxhgm",
                                "image": "https://dongbd.com/wp-content/uploads/2022/09/1664363777.webp",
                                "discount": 50,
                                "market": 199,
                                "shop_pc": "https://coupon.m.jd.com/coupons/show.action?key=38e5c8b63f0d4a6d83845a133bbe626a&roleId=96881725&to=mall.jd.com/index-12201306.html",
                                "shop_mobile": "https://coupon.m.jd.com/coupons/show.action?key=38e5c8b63f0d4a6d83845a133bbe626a&roleId=96881725&to=mall.jd.com/index-12201306.html"
                            },
                            {
                                "product_name": "米杯ONE",
                                "qr_id": "qgfwkm",
                                "image": "https://dongbd.com/wp-content/uploads/2022/06/203216.webp",
                                "discount": 50,
                                "market": 249,
                                "shop_pc": "https://coupon.m.jd.com/coupons/show.action?key=134b3c4161c14fc5ae9e36bfca2399f3&roleId=96882018&to=mall.jd.com/index-12201306.html",
                                "shop_mobile": "https://coupon.m.jd.com/coupons/show.action?key=134b3c4161c14fc5ae9e36bfca2399f3&roleId=96882018&to=mall.jd.com/index-12201306.html"
                            }
                        ]
                    },
                ]
            };






            //获取背景图
            let list_images = list.images;
            //获取店铺
            let list_arr = list.rows;
            //展示数据


            //移动端判断
            let awesome = Vue.ref();
            if (/Mobi|Android|iPhone/i.test(navigator.userAgent)) {
                // 当前设备是移动设备
                awesome.value = false;
            } else {
                //当前是非移动端设备
                awesome.value = true;
            };


            //处理数据，将生成的链接转为二维码


            //处理list_arr数组，添加
            const qrShow = () => {
                for (let i = 0; i < list_arr.length; i++) {
                    product_arr = list_arr[i]["product"];
                    for (let v = 0; v < product_arr.length; v++) {
                        //拿到ID
                        arr_ID = product_arr[v]["qr_id"];
                        //拿到链接
                        if (awesome.value) {
                            //获取PC端链接
                            arr_URL = product_arr[v]["shop_pc"];
                        } else {
                            //获取移动端链接
                            arr_URL = product_arr[v]["shop_mobile"];
                        }


                        //拿到产品名
                        title = product_arr[v]["product_name"];




                        let qrcode = new QRCode(document.getElementById(arr_ID),

                            {
                                text: arr_URL,
                                width: 200,
                                height: 200,
                            }
                        );
                        qrcode._el.title = title;//设置图片标题

                    }


                };
            }

            //延时加载
            setTimeout(() => {
                qrShow();
            }, 10);












            return {
                //项目数据
                list_arr,
                //背景图数据
                list_images,
                //移动端判断数据
                awesome
            }
        },


    })


    App.mount("#Application")
</script>


<script>
    // 获取id
    let ActivityDate = document.getElementById("ActivityDate");

    //倒计时 - 活动开始
    function timepiece(key) {
        let datatime = /^[\d]{4}-[\d]{1,2}-[\d]{1,2}( [\d]{1,2}:[\d]{1,2}(:[\d]{1,2})?)?$/ig, str = '', s;
        // 正则验证日期格式是否正确
        if (!key.match(datatime)) {
            console.log('日期参数错误，请按格式填写，如 1996-10-22 24:00:00');
            return
        }
        // 当前日期减去活动日期，判断是否超出
        let sec = (new Date(key.replace(/-/ig, '/')).getTime() - new Date().getTime()) / 1000;
        if (sec < 0) {
            //活动时间开始后，开始新的倒计时，到活动截止时间停止计时

            //活动截止时间
            let deadline = "2022-02-05 12:00:00";
            ActivityDate.innerHTML = "<span style=" + "color:red;" + ">" + "本次活动截止至<b>2023年02月05号</b></span>";
            return
        }
        s = {
            '天': sec / 24 / 3600,
            '时': sec / 3600 % 24,
            '分': sec / 60 % 60,
            '秒': sec % 60
        }
        for (i in s) {
            if (Math.floor(s[i]) > 0) str += Math.floor(s[i]) + i;
        }
        if (Math.floor(sec) == 0) {
            str = '0秒';
        }
        // 距离活动结束时间显示到页面
        ActivityDate.innerHTML = "<h1>" + "还有" + str + "<br>第三届杯货节就开始啦" + "</h1>";
        // 每隔1秒更新一次
        setTimeout(function () {
            timepiece(key)
        }, 1000)
    }
    timepiece(ActivityDate.innerHTML);

    //活动开始 - 活动结束
    //第二阶段计时开始

</script>

<style type="text/css">
    /*@charset 'UTF-8';
        https://acts.book.qq.com/2020/7023087/index.html
        */

    body,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    ul {
        margin: 0
    }

    ol,
    ul {
        padding: 0;
        list-style: none
    }

    a {
        text-decoration: none;
        color: inherit
    }

    em {
        font-style: normal
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    input,
    select,
    textarea {
        font-size: 100%
    }

    input,
    select,
    textarea {
        font-family: inherit;
        box-sizing: border-box
    }

    html {
        font-size: 16px
    }

    body {
        font-family: sans-serif;
        line-height: 1.5;
        user-select: text;
        -webkit-user-select: text;
        color: #33373d;
        fill: currentColor;
        -webkit-tap-highlight-color: transparent;
        -webkit-text-size-adjust: none;
        -webkit-touch-callout: none
    }

    body {
        width: 100%;
        height: 100%;
        background: #fff
    }

    body,
    html {
        /*height: 100%;*/
        scroll-behavior: smooth
    }

    .home-list {
        max-width: 1300px;
        margin: 132px auto 0;
        font-size: 0;
        position: relative
    }

    .home-item {
        display: inline-block;
        vertical-align: top;
        font-size: 16px;
        width: 31%;
        height: 460px;
        background: #ebeef5;
        position: relative;
        border-radius: 20px;
        padding: 16px 22px 24px;
        box-sizing: border-box;
        margin-right: 25px;
        margin-bottom: 100px
    }

    .home-item-mtitle {
        display: inline-block;
        color: #fff;
        background: #F40;
        line-height: 24px;
        padding: 0 10px;
        border-radius: 20px;
        margin-bottom: 10px;
        font-weight: bold;
    }

    .home-item-title {
        margin-bottom: 50px
    }

    .home-item-name {
        margin-bottom: 16px;
        color: #848588;
        font-size: 14px;
        text-decoration: line-through;
    }

    .home-item-msg {
        font-size: 14px;
        color: #3a3f48;
        margin-top: 1em;
        margin-bottom: 15px;
        display: -webkit-box;
        height: auto;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        overflow: hidden
    }

    .home-item-btn {
        font-size: 16px;
        text-align: center;
        width: 100%;
        display: block;
        background-color: #e20a1f;
        border-radius: 5px;
        color: #fff;
        line-height: 48px;
        height: 48px;
        margin: 20px auto 0;
        float: right;
    }

    .home-item-pic {
        position: absolute;
        right: 24px;
        top: -70px;
        width: 128px;
        height: 172px;
        border-radius: 5px;
        object-fit: cover;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .5)
    }

    .home-footer {
        line-height: 120px;
        height: 120px;
        color: #cacaca;
        text-align: center;
        background: #3a3f48
    }

    @media screen and (max-width:640px) {
        .home-list {
            margin-top: 70px;
            width: 100%
        }

        .home-item {
            display: block;
            width: 90%;
            margin: 0 auto 50px
        }

        .home-item-pic {
            width: 90px;
            height: 125px;
            top: -25px
        }

        .home-item-mtitle {
            padding: 0 20px
        }



        .home-footer {
            line-height: 100px;
            height: 100px;
            font-size: 12px
        }

        .n-main-box b {
            font-size: 12px !important;
        }


    }



    .home-banner {
        position: relative;
        padding-top: 116%
    }

    .home-pic {
        position: absolute;
        margin: 0 auto;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: auto
    }



    .n-yhdh {


        margin-bottom: 1em;
    }


    .n-h2 {
        padding: 0 0.1em;
        text-align: center;
        font-size: 28px;
        margin-bottom: 1em
    }

    .home-item h2 {
        margin: 0 0 1.8em 0;
        font-weight: bold;
        font-size: 26px;
    }

    .n-main-box {
        text-align: center;
        margin-top: 2em;
    }

    .n-main-box b {
        display: block;
        margin: 1em 0;
        font-size: 16px;
        font-weight: bolder;
        background-color: rgb(190, 26, 29);
        color: rgb(255, 255, 255);
    }

    .n-img img {
        display: block;
        margin: 0 auto 1em auto;
        width: 45%;
        height: auto;
    }

    .n-ul {
        margin: 0 0 2em 0;
        text-align: center;
    }

    .n-ul li {
        margin-bottom: .2em;
    }

    .n-ul li b {
        color: red;
    }

    .n-size {
        font-size: 14px;
    }

    /*印章*/
    .seal-result {
        width: 100px;
        height: 100px;
        transform: rotate(20deg);
        border: solid 2px green;
        border-radius: 100%;
        text-align: center;
        color: green;
        font-size: 18px;
        font-weight: bold;
        line-height: 88px;
        right: 10px;
        top: 8em;
        position: fixed;
        background-color: rgba(255, 255, 255, 0.8);
        z-index: 999;
    }

    .seal-result-fail {
        border-color: #adb5bd;
        color: #adb5bd;
    }




    /*移动端*/
    @media screen and (max-width: 768px) {
        .n-top {
            margin-top: 12em !important;
        }

        .m-divbox {
            overflow: hidden;
            height: 100%;
        }

        .m-box {

            padding: 10px 0;
            white-space: nowrap;
            /*文本不会换行，文本会在在同一行上继续*/
            overflow-y: auto;
            /*可滑动*/
            padding: 4em 0 1em 0;
            overflow-x: auto;
            overscroll-behavior-x: contain;
            scroll-snap-type: x mandatory;
        }

        /*自定义滚动条的伪对象选择器, CSS 可以隐藏滚动条*/
        /*.box::-webkit-scrollbar{
display: none;
}*/
        .box1 {
            width: 90% !important;
            margin-left: 3% !important;
            background: #fff;
            display: inline-block !important;
            scroll-snap-align: center;
        }

        .m-home-item-pic {
            position: relative;
            right: -12em;
            top: -24em;
            width: 128px;
            height: 172px;
            border-radius: 5px;
            object-fit: cover;
            box-shadow: 0 2px 8px rgb(0 0 0 / 50%);
        }

        .main-tips {
            margin-top: 3em;
        }

        .phone {
            display: block !important;
        }

        .pc {
            display: none;
        }

        .home-banner {
            padding-top: 116% !important;
        }

        .home-item h2 {
            font-size: 18px;
        }

        /*标签*/
        .npc_tag {
            top: 0px !important;
        }

    }

    /*PC端*/
    @media screen and (min-width: 768px) {


        .n-yhdh {
            margin-top: 10em;
        }


        .m-divbox {
            max-width: 1300px;
            margin: 6em auto 0;
        }



    }

    /*翻页提示*/
    .tips {
        display: block;
        text-align: center;
        color: #F40;
    }

    /*提示信息*/
    .main-tips {
        text-align: center;
        color: red;
        font-size: 26px;
        font-weight: bold;
    }



    .phone {
        display: none;
    }

    .home-banner {
        padding-top: 56%;
    }

    /*表格*/
    .npc-table {
        margin: 0 auto;
        margin-bottom: 6em;
    }

    .npc-table tr>th,
    .npc-table tr>td {
        padding: 10px;
        text-align: center;
    }

    .npc-table tr>td:first-child {
        color: red;
        font-weight: bold;
    }

    /*内容边框*/
    .npc_content_box {
        margin-top: 2em;
        padding-top: 2em;
        background-color: #f6f6f6;
        border-radius: 6px;

        box-shadow: 8px 8px 20px 0 rgb(55 99 170 / 10%), -8px -8px 20px 0 #fff;
    }

    /*内容标签*/
    .m-divbox {
        position: relative;
    }

    .npc_tag {
        position: absolute;
        display: inline-block;
        padding: 8px;
        top: -150px;
        background-color: red;
        width: 48px;
        height: 48px;
        text-align: center;
        z-index: 2;
        overflow: hidden;
        border-radius: 100%;
        font-size: 18px;
        color: #fff;
    }
</style>